package com.laicunba.service.activity.joinlistener;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

import com.laicunba.event.ActivityJoinEvent;
import com.laicunba.pojo.ActivityJoinDO;

@Component
public class ActivityJoinEventListener implements ApplicationListener<ActivityJoinEvent> {

	@Override
	public void onApplicationEvent(ActivityJoinEvent event) {
		ActivityJoinDO joinDO = (ActivityJoinDO) event.getSource();
		System.out.println("收到一个JOIN事件," + joinDO);
	}

}
